<?php
/** @var string $type */
/** @var array $typeList */

use yii\helpers\Html;
use yii\helpers\Url;

$this->title = '素材';
$this->params['breadcrumbs'][] = $this->title;
?>
<p class="text-right">
<?= Html::a('上传永久素材', ['add-material'], ['class' => 'btn btn-primary']) ?>
</p>

<form class="form-inline" method="get" action="<?= Url::to(['index']) ?>">
    <?= Html::dropDownList('type', $type, $typeList, ['class' => 'form-control', 'onchange' => 'this.form.submit();']) ?>
    <pre>
        <?= var_export($items, true) ?>
    </pre>
    <p>Total: <?= $total ?> Count: <?= $count ?></p>
</form>